/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.epam.homedevices.videobroadcasting;

import kz.epam.homedevices.ElectricalDevice;

/**
 *
 * @author Knoppix
 */
public class VideoBroadcastingDevice extends ElectricalDevice {

    private int screenDiagonal;
    private VideoBroadcastingType type;

    public VideoBroadcastingDevice() {
    }

    public VideoBroadcastingDevice(VideoBroadcastingType type, String maker, Double cardinality, boolean powerOn, int screenDiagonal) {
        super(maker, cardinality, powerOn);
        this.screenDiagonal = screenDiagonal;
        this.type = type;
    }

    public int getScreenDiagonal() {
        return screenDiagonal;
    }

    public void setScreenDiagonal(int screenDiagonal) {
        this.screenDiagonal = screenDiagonal;
    }

    public VideoBroadcastingType getType() {
        return type;
    }

    public void setType(VideoBroadcastingType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "\n" + this.type.toString() + " {"
                + super.toString()
                + ", Diagonal: " + this.screenDiagonal + "inches}";
    }
}
